package com.ossjk.oa.system.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.ossjk.core.base.entity.BaseEntity;

/**
 * <p>
 * 银行卡表
 * </p>
 *
 * @author chair
 * @since 2019-01-28
 */
public class Bankcard extends BaseEntity<Bankcard> {

	private static final long serialVersionUID = 1L;

	@TableId("id")
	private String id;
	/**
	 * 员工id
	 */
	@TableField("eid")
	private String eid;
	/**
	 * 卡号
	 */
	@TableField("card")
	private String card;
	/**
	 * 银行卡开户行
	 */
	@TableField("bank")
	private String bank;
	/**
	 * 是否主卡 1-是、2-否
	 */
	@TableField("main")
	private BigDecimal main;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEid() {
		return eid;
	}

	public void setEid(String eid) {
		this.eid = eid;
	}

	public String getCard() {
		return card;
	}

	public void setCard(String card) {
		this.card = card;
	}

	public String getBank() {
		return bank;
	}

	public void setBank(String bank) {
		this.bank = bank;
	}

	public BigDecimal getMain() {
		return main;
	}

	public void setMain(BigDecimal main) {
		this.main = main;
	}

 

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Bankcard{" + ", id=" + id + ", eid=" + eid + ", card=" + card + ", bank=" + bank + ", main=" + main + ", crer=" + crer + ", mder=" + mder + ", state=" + state + ", isdelete=" + isdelete + "}";
	}
}
